package pres.dnf.test.java.springcloud.client.hystrix.feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dengfan
 * @version 1.0
 * @description
 * @date 2018/9/11 0011 17:14
 */
@FeignClient(value = "ops-service-dnf",fallback = OpsConsumerHystrixService.class)
public interface OpsConsumerService {

    @RequestMapping(value = "/add")
    public Integer add(@RequestParam(value = "a") Integer a,@RequestParam(value = "b") Integer b);
}
